package zwz.importTask.strategy.exportStrategy;


import org.springframework.stereotype.Component;
import zwz.importTask.VO.TypeAImportVO;
import zwz.importTask.strategy.AbstractExcelExportStrategy;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: ZengWenZhe
 * @CreateTime: 2024-09-14  14:57
 * @Emoji (゜ - ゜)つ干杯
 * @Description:
 */
@Component
//测试导入导出用一个VO
public class TypeAExportStrategy extends AbstractExcelExportStrategy<TypeAImportVO> {


    @Override
    protected List getExportedData(String params) {
        ArrayList<TypeAImportVO> importDtos = new ArrayList<>();
        for (int i = 0; i < 10000; i++) {
            TypeAImportVO importVO = new TypeAImportVO();
            importVO.setDepartmentId(0L);
            importVO.setDepartmentName("3221");
            importVO.setName("111");
            importVO.setPhone("111");
            importVO.setSex("男");
            importDtos.add(importVO);
        }
        return importDtos;
    }

    @Override
    protected Class getExcelClass() {
        return TypeAImportVO.class;
    }
}
